
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class LoginDto {

    @ApiProperty({description:'账号'})
    @IsNotEmpty()
    username: string;
 
    @ApiProperty({description:'密码'})
    @IsNotEmpty()
    password: string;
} 